package com.eight.vote.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eight.vote.pojo.VOption;
import com.eight.vote.mapper.VOptionMapper;
import com.eight.vote.service.VOptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 点点星言
 * @since 2022-10-16
 */
@Service
public class VOptionServiceImpl extends ServiceImpl<VOptionMapper, VOption> implements VOptionService {

    @Override
    public List<VOption> getByWrapperList(QueryWrapper<VOption> optionQueryWrapper) {
        List<VOption> options = baseMapper.selectList(optionQueryWrapper);
        return options;
    }
}
